
using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Features;
using Core.Resources;
using Core.Extensions;

namespace Core.Items.Robots
{
    /// <summary>
    /// Yagel mk2 robot class
    /// </summary>
    
    public sealed class YagelMk2 : RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.YagelMk2"/> class.
        /// </summary>
        public YagelMk2()
            : base(
            "Yagel Mk2",
            Traduction.desc_yagel,
            FactionsEnum.Nuimqol,
            RobotTechnologyLevel.Mk2,
            RobotSizesEnum.Light,
            new ISlot[]{ 
				new Slot(0, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Misc, SizesEnum.Small),
				new Slot(1, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
				new Slot(2, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Misc, SizesEnum.Small),
				new Slot(3, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Missile|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules), },
            new IFeature<object>[]{ 
				new AccumulatorCapacity<double>(250),
				new AccumulatorRechargeTime<double>(120),
				new CpuPerformance<double>(140),
				new ReactorPerformance<double>(125),
				new ArmorAmount<double>(700),
				new ChemicalResistance<double>(30),
				new KineticResistance<double>(45),
				new SeismicResistance<double>(150),
				new ThermalResistance<double>(10),
                new ChemicalEHP<double>(0),
                new KineticEHP<double>(0),
                new SeismicEHP<double>(0),
                new ThermalEHP<double>(0),
				new SurfaceHitSize<double>(3.00),
				new InterferenceEmission<double>(4.00),
				new InterferenceMinimum<double>(80.00),
				new InterferencePeak<double>(280.00),
				new InterferenceRadius<double>(150.00),
				new LockingRange<double>(150),
				new LockingTime<double>(12.50),
				new MaximumTargets<double>(5),
				new MissileGuidanceFailure<double>(0.1),
				new SensorStrength<double>(120),
				new SignalDetection<double>(120.00),
				new SignalMasking<double>(100.00),
				new ReloadingTime<double>(10),
				new CargoCapacity<double>(3.75),
				new RobotMass<double>(6276.00),
				new SlopeCapacity<double>(56),
				new TopSpeed<double>(84.60),
				new Volume<double>(12.00),
                new DemobilizerResistance<double>(0),
                new CriticalHitChance<double>(0),
                },

            new IBonusModifier[]{
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SmallMagneticWeaponFalloff, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Small magnetic weapon falloff"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SmallMagneticWeaponDamage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Small magnetic weapon damage"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.ArmorRepairAmount, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Armor repair amount"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.RemoteArmorRepairAmount, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Remote armor repair amount"},
                    new BonusModifier<NuimqolRobotControl>( FeatureTypesEnum.Module, FeaturesEnum.SmallMagneticWeaponCycleTime, -0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Cycle Time"},
                    new BonusModifier<NuimqolRobotControl>( FeatureTypesEnum.Module, FeaturesEnum.MediumMagneticWeaponCycleTime, -0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Cycle Time"},
                    new BonusModifier<NuimqolRobotControl>( FeatureTypesEnum.Robot, FeaturesEnum.AccumulatorCapacity, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Accumulator capacity" },
            },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<NuimqolRobotControl>(3),
                    new ExtensionCondition<BasicRobotics>(1)
                })
        {
        }
    }
}